package com.dmscpt.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import nonapi.io.github.classgraph.json.Id;
import java.io.Serializable;

/**
 * <p>
 * 代码生成数据库管理
 * </p>
 * @author hnyufushan
 * @since 2025-03-14
 */
@TableName("dmsc_db")
public class DmscDb implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键
    @Id
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    //数据库类型
    @Excel(name = "数据库类型")
    private String dbType;

    //数据库url
    @Excel(name = "数据库url")
    private String dbUrl;

    //用户名
    @Excel(name = "用户名")
    private String dbUser;

    //密码
    @Excel(name = "密码")
    private String dbPassword;

    //项目名称
    @Excel(name = "项目名称")
    private String xmName;

    //数据库schemaName
    @Excel(name = "数据库schemaName")
    private String schemaName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getDbUrl() {
        return dbUrl;
    }

    public void setDbUrl(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public String getDbUser() {
        return dbUser;
    }

    public void setDbUser(String dbUser) {
        this.dbUser = dbUser;
    }

    public String getDbPassword() {
        return dbPassword;
    }

    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }

    public String getXmName() {
        return xmName;
    }

    public void setXmName(String xmName) {
        this.xmName = xmName;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public void setSchemaName(String schemaName) {
        this.schemaName = schemaName;
    }
}
